<?php
/*
 *  @author Nicolas Genevaux
 * (c)nige 2008
 */
?>
<?php include("../include/haut.php"); ?>

<div id="titreInscription" class="titreInscription">
	<span class="title">Ajouter une question</span>
</div>
<form id="ajoutQuestion" method="post" action="<?= $PAGE_TRA_AJOUT_QUESTION ?>">
	<div id="ajoutQuestionMatiere" class="ajoutQuestionMatiere">
		<span class="contenu">Mati&egrave;re</span>
	</div>
	<div>
		<input type="hidden" name="identifiantinscrit" value="<?= $_SESSION['ID_CONECT'] ?>" />
	</div>
	<div id="ajoutQuestionMatiereInput" class="ajoutQuestionMatiereInput">
		<select class="contenu" name="identifiantmatiere">
			<option value="choix">Choisissez</option>
			 <?= include($RACINE.'inc/html.select.matiere.php') ?>
		</select>
	</div>
	<div id="ajoutQuestionQuestion" class="ajoutQuestionQuestion">
		<span class="contenu">Votre question</span>
	</div>
	<div id="ajoutQuestionQuestionInput" class="ajoutQuestionQuestionInput">
		<textarea class="contenu" cols="50" rows="3" name="question"><?= $_SESSION['question'] ?></textarea>
	</div>
	<div id="ajoutQuestionReponse1" class="ajoutQuestionReponse1">
		<span class="contenu">R&eacute;ponse 1</span>
	</div>
	<div id="ajoutQuestionReponse1Input" class="ajoutQuestionReponse1Input">
		<textarea cols="18" name="reponse1"><?= $_SESSION['reponse1'] ?></textarea>
	</div>
	<div id="ajoutQuestionReponse2" class="ajoutQuestionReponse2">
		<span class="contenu">R&eacute;ponse 2</span>
	</div>
	<div id="ajoutQuestionReponse2Input" class="ajoutQuestionReponse2Input">
		<textarea cols="18" name="reponse2"><?= $_SESSION['reponse2'] ?></textarea>
	</div>
	<div id="ajoutQuestionReponse3" class="ajoutQuestionReponse3">
		<span class="contenu">R&eacute;ponse 3</span>
	</div>
	<div id="ajoutQuestionReponse3Input" class="ajoutQuestionReponse3Input">
		<textarea cols="18" name="reponse3"><?= $_SESSION['reponse3'] ?></textarea>
	</div>
	<div id="ajoutQuestionReponse4" class="ajoutQuestionReponse4">
		<span class="contenu">R&eacute;ponse 4</span>
	</div>
	<div id="ajoutQuestionReponse4Input" class="ajoutQuestionReponse4Input">
		<textarea cols="18" name="reponse4"><?= $_SESSION['reponse4'] ?></textarea>
	</div>
	<div id="ajoutQuestionSolution" class="ajoutQuestionSolution">
		<span class="contenu">
			La bonne r&eacute;ponse est
			<input type="radio" name="reponse" value="1" <?= checked($_SESSION['reponse'],1) ?> /> 1
			<input type="radio" name="reponse" value="2" <?= checked($_SESSION['reponse'],2) ?> /> 2
			<input type="radio" name="reponse" value="3" <?= checked($_SESSION['reponse'],3) ?> /> 3
			<input type="radio" name="reponse" value="4" <?= checked($_SESSION['reponse'],4) ?> /> 4
		</span>
	</div>
	<div id="ajoutQuestionValider" class="ajoutQuestionValider">
		<input type="submit" value="Valider" class="bouton" />
	</div>
</form>

<?php include("../include/bas.php"); ?>
